package com.zz.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zz.entity.Orders;
import com.zz.service.impl.OrdersServiceImpl;

@Controller
public class OrdersController {
    @Autowired
	OrdersServiceImpl osi;
    
    
    //查询所有订单  
    @RequestMapping("admin/order_list.do")
   	public String queryAllOrder(Model m){
    	
    	m.addAttribute("orderList",osi.queryAllOrder() );
    	
    	return "order_list.jsp";
    }
}
